﻿#include <iostream>
#include <string>
#include "Vector2.h"
#include "Point2.h"

using namespace std;

//Bob Burqawitz
//calculates the reflection of a vector using the normal of an edge.
// (Thomas: Moved as Vector2 member)
/* Vector2 reflect(Vector2 original, Vector2 normal)
{
	//r=d−2(d⋅n^)n^
	Vector2 normalisedNormal = normal.normalized();
	Vector2 reflectedVector = original - (((normalisedNormal)*2.0)*
		((original.x*normalisedNormal.x) + (original.y*normalisedNormal.y)));

	return reflectedVector;
} */

#if 0
int main () {
	Vector2 original = Vector2(1.0, 0.0);
	Vector2 normal = Vector2(-5.0, -1.0);
	Vector2 reflected;

	reflected = original.reflected(normal);

	string temp;
	cout << reflected.x << " " << reflected.y;

	cin >> temp; 
	return 0;
}
#endif